package design.simdi.code.final_paper.core.daos;

import it.openutils.dao.hibernate.HibernateDAO;
import it.openutils.dao.hibernate.HibernateDAOImpl;

import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import design.simdi.code.final_paper.core.entities.Absolvent;

/**
 * 
 * @author Marius Dumitriu - (Jun 26, 2010 - 4:25:11 PM)
 * 
 */
public interface AbsolventDao extends HibernateDAO<Absolvent, Long> {
	@Repository(value = "absolventDao")
	public static class AbsolventDaoImpl extends HibernateDAOImpl<Absolvent, Long> implements AbsolventDao {

		@Autowired
		public AbsolventDaoImpl(SessionFactory factory) {
			setSessionFactory(factory);
			setReferenceClass(Absolvent.class);
		}

	}
}
